package com.wanmao.test;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ListView;

import com.wanmao.test.shebei.GetSBLXAsynTask;
import com.wanmao.test.shebei.Item;
import com.wanmao.test.view.progressView;

import java.util.ArrayList;
import java.util.List;

public class CheckActivity extends BaseActivity {

    private ListView lv;
    private progressView pv;
    private static List<Item> list = null;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_check);
        lv = (ListView) findViewById(R.id.lv);
        pv = (progressView) findViewById(R.id.progressview);
        initView();
    }
    private void initView(){
        list = new ArrayList<>();
        GetSBLXAsynTask task = new GetSBLXAsynTask(this,lv,pv);
        task.execute();
    }
    public void close(String SBLX ){
        Bundle bundle =new Bundle();
        bundle.putString("SBLX",SBLX);

        setResult(RESULT_OK,new Intent().putExtra("SBLX",SBLX));
        finish();
        }
}
